package com.xyht.sca_s.student_manage_system.modules.carUseManage.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.req.SmsCarUseApplicationProcessReq;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.service.SmsCarUseApplicationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-07-31
 */
@SecretBody
@RestController
@RequestMapping("/smsCarUseApplicationProcess")
public class SmsCarUseApplicationProcessController {
    @Autowired
    private SmsCarUseApplicationProcessService smsCarUseApplicationProcessService;


    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateProcess(@RequestBody SmsCarUseApplicationProcessReq processVO) {
        return smsCarUseApplicationProcessService.updateProcess(processVO);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getProcessList() {
        return smsCarUseApplicationProcessService.getProcessList();
    }
}

